package video.threaddemo.runnable;


public class RunnableDemo implements Runnable{
    private String str;

    public  RunnableDemo(String str){
        this.str = str;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(4*1000);
            System.out.println(Thread.currentThread().getName()+":"+str);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
